public class test {
    public static void main(String[] args) {
        String a = "0";
        String r = "-?[1-9]\\d*";
        boolean b = a.matches(r);
        System.out.println(b);
    }
}
